Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

406 - the docket number will reset to 1 on a new year #561

Merged
merged 4 commits into from
Jan 7, 2019

Conversation

codyseibert
Copy link

the docket number did not reset to 1 on a new year; this pr creates a new index with the year as the suffix to fix that

@codyseibert codyseibert merged commit 3ec1108 into develop Jan 7, 2019
@waldoj
Copy link

waldoj commented Jan 7, 2019

Very interesting! I'm glad our work spanned the new year so that this could be spotted early.

return client.updateConsistent({
applicationContext,
TableName: TABLE,
Key: {
pk: 'docketNumberCounter',
sk: 'docketNumberCounter', // TODO: set sk by the year, i.e. 2018
pk: `docketNumberCounter-${year}`,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@codyseibert Why is the format of a docket number a rule enforced by the persistence gateway? Or am I misunderstanding what's really going on here?

@codyseibert codyseibert deleted the task/406_fix_docket_number_year_bug branch January 8, 2019 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants